/* Prevent horizontal overflow */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure images scale responsively */
img.img-fluid, .ipad-screen, .imac-screen {
    max-width: 100%;
    height: auto;
}

/* White section styling */
.white-section {
    padding: 60px 0;
}

.white-section .container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Ensure columns are responsive */
.white-section .col-lg-6 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.white-section-text {
    padding: 20px;
}

.imac-section-header {
    font-size: 2.5rem;
    color: #333;
    font-weight: bold;
}

.imac-section-desc span {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.8;
    display: block;
    text-align: justify;
}

.imac-section-desc {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Container should not exceed screen width */
.container {
    max-width: 1140px;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Ensure flexbox is used on small screens */
.home-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: hidden; /* Prevent horizontal overflow */
}

/* Image slider */
.image-slider {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.image-slider img {
    object-fit: cover;
}

/* Mobile responsiveness for layout */
@media (max-width: 768px) {
    /* Stack text and image sections vertically on smaller screens */
    .white-section .row {
        flex-direction: column-reverse;
    }

    .imac-section-header {
        font-size: 2rem;
    }

    .imac-section-desc span {
        font-size: 1rem;
    }

    .home-wrapper {
        flex-direction: column-reverse; /* Stack on small screens */
    }

    .container {
        padding: 0 15px; /* Padding adjustments for mobile */
    }

    /* Ensure images scale properly */
    .image-slider img {
        max-height: 300px;
        object-fit: contain; /* Show entire image without cropping */
    }

    .title-heading h1 {
        font-size: 2rem;
    }

    .para-desc {
        font-size: 1rem;
    }

    .imac-section-header {
        font-size: 1.8rem;
    }

    .imac-section-desc span {
        font-size: 1rem;
        line-height: 1.6;
    }

    .mt-4 {
        margin-top: 20px;
    }
}

/* Styling for the Product Grid Section */
#products {
    background-color: #f8f9fa;
}

.title-heading h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.product-card img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
}

.product-card h4 {
    font-size: 1.25rem;
    margin-top: 15px;
}

.product-card p {
    font-size: 1rem;
    color: #666;
}

.product-card a {
    margin-top: 15px;
}

/* Mobile-First Responsive Adjustments */
@media (max-width: 768px) {
    .product-card {
        padding: 15px;
    }

    .product-card h4 {
        font-size: 1.125rem;
    }

    .product-card p {
        font-size: 0.95rem;
    }

    .col-lg-3 {
        width: 50%;
    }

    .col-md-4 {
        width: 50%;
    }

    .col-sm-6 {
        width: 100%;
    }
}

